<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>发布商品</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/AddHitem.css">
</head>

<body>
    <div id="content">
        <div id="divform">
            <form class="layui-form" id="frm">
                <input type="text" name="Hitemname" id="Hitemname" placeholder="请输入你要发布的物品名称" class="layui-input">
                <select name="HitemType" id="HitemType">
                    <option value="">请选择</option>
                    <optgroup label="电子产品">
                        <option value="5">手机</option>
                        <option value="6">电脑</option>
                        <option value="7">电视机</option>
                        <option value="8">耳机</option>
                    </optgroup>
                    <optgroup label="家具">
                        <option value="9">桌椅</option>
                        <option value="10">床</option>
                        <option value="11">书柜</option>
                    </optgroup>
                    <optgroup label="书籍">
                        <option value="12">教材</option>
                        <option value="13">小说</option>
                        <option value="14">杂志</option>
                    </optgroup>
                    <optgroup label="运动器材">
                        <option value="15">跑步机</option>
                        <option value="16">哑铃</option>
                        <option value="17">瑜伽垫</option>
                    </optgroup>
                </select>
                <input type="text" name="HitemPrice" id="HitemPrice" placeholder="请输入你要发布的物品价格" class="layui-input">
                <input type="text" name="Hitemgrade" id="Hitemgrade" placeholder="请输入你要发布的物品成色" class="layui-input">
                <textarea name="Hitemcontent" id="Hitemcontent" class="layui-textarea"
                    placeholder="介绍一下你物品吧" style="margin-bottom: 20px;"></textarea>
                <!--        <input type="hidden" name="fileHiddenImg" id="fileHidden">-->
                <button type="button" class="layui-btn" id="filebtn">
                    <i class="layui-icon layui-icon-upload"></i> 选择要上传的图片
                </button>
                <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 11px;">
                    预览图：
                    <div class="layui-upload-list" id="upload-demo-preview"></div>
                </blockquote>
                <button type="button" id="btnAdd" class="layui-btn">发布</button>
            </form>
        </div>
    </div>
    <script src="js/jquery-3.7.1.js"></script>
    <script src="layui/layui.js"></script>
    <script src="js/AddHitem.js"></script>
    <script src="js/uploadHitemImg.js"></script>
</body>

</html>